<% include pageHeader %>

<table width="500px" align="center" cellspacing="1" class="formbox">
    <form name="Login" method="post" action="?act=login">
        <input name="_csrf" type="hidden" value="<%- ctx.csrf %>" />
        <tr>
            <td class="formbox-title" colspan="2"><%= __("login") %></td>
        </tr>
        <tr>
            <td class="formbox-rowheader"><%= __("username") %>:</td>
            <td class="formbox-content"><input name="username" type="text" id="username" size="24" maxlength="24"
                                               class="text"/>
            </td>
        </tr>
        <tr>
            <td class="formbox-rowheader"><%= __("password") %>:</td>
            <td class="formbox-content"><input name="password" type="password" id="password" size="24" maxlength="16"
                                               class="text"/></td>
        </tr>
        <% if(theCache.settings["enableSecurityCode"] == 1){ %>
            <tr>
                <td class="formbox-rowheader"><%= __("scode") %>:</td>
                <td class="formbox-content"><input name="scode" size="4" maxlength="4" type="text" id="scode" class="text"/>
                    <img src="scode.asp"/>
                </td>
            </tr>
        <% } %>
        <tr>
            <td class="formbox-rowheader" valign="top"><%= __("auto_login") %>:</td>
            <td class="formbox-content">
                <input type="radio" name="CookiesDay" value="1" checked/> <%= __("disabled") %>
                <br><input type="radio" name="CookiesDay" value="30"/> 1 <%= __("month") %>
                <br><input type="radio" name="CookiesDay" value="365"/> 1 <%= __("year") %>
            </td>
        </tr>
        <tr>
            <td class="formbox-content"></td>
            <td class="formbox-content">
                <input name="Login" type="submit" id="agree" value="   <%= __("login") %>   " class="button"/>
                &nbsp; <input name="Register" type="button" id="Register"
                              onclick="javascript:document.location.href='register.asp';"
                              value=" <%= __("register") %> " class="button"/>
            </td>
        </tr>
    </form>
</table>

<% include pageFooter %>
